package com.design.pattern.iterator;

import java.util.ArrayList;

public class IteratorTest {
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu();
        DinerMenu dinerMenu = new DinerMenu();
        arrayList.add(pancakeHouseMenu);
        arrayList.add(dinerMenu);
        Waitress waitress = new Waitress(arrayList);
        waitress.printMenu();
    }
}